Integrand size = 33, antiderivative size = 200 \[ \int \cos ^4(c+d x) (a+a \sec (c+d x))^4 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {1}{8} a^4 (35 A+52 C) x+\frac {4 a^4 C \text {arctanh}(\sin (c+d x))}{d}+\frac {5 a^4 (7 A+4 C) \sin (c+d x)}{8 d}+\frac {a A \cos ^2(c+d x) (a+a \sec (c+d x))^3 \sin (c+d x)}{3 d}+\frac {A \cos ^3(c+d x) (a+a \sec (c+d x))^4 \sin (c+d x)}{4 d}+\frac {(7 A+4 C) \cos (c+d x) \left (a^2+a^2 \sec (c+d x)\right )^2 \sin (c+d x)}{8 d}-\frac {(35 A-12 C) \left (a^4+a^4 \sec (c+d x)\right ) \sin (c+d x)}{24 d} \]
[Out]
Time = 0.66 (sec) , antiderivative size = 200, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {4172, 4102, 4103, 4081, 3855} \[ \int \cos ^4(c+d x) (a+a \sec (c+d x))^4 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {5 a^4 (7 A+4 C) \sin (c+d x)}{8 d}-\frac {(35 A-12 C) \sin (c+d x) \left (a^4 \sec (c+d x)+a^4\right )}{24 d}+\frac {1}{8} a^4 x (35 A+52 C)+\frac {4 a^4 C \text {arctanh}(\sin (c+d x))}{d}+\frac {(7 A+4 C) \sin (c+d x) \cos (c+d x) \left (a^2 \sec (c+d x)+a^2\right )^2}{8 d}+\frac {A \sin (c+d x) \cos ^3(c+d x) (a \sec (c+d x)+a)^4}{4 d}+\frac {a A \sin (c+d x) \cos ^2(c+d x) (a \sec (c+d x)+a)^3}{3 d} \]
[In]
[Out]
Rule 3855
Rule 4081
Rule 4102
Rule 4103
Rule 4172
Rubi steps \begin{align*} \text {integral}& = \frac {A \cos ^3(c+d x) (a+a \sec (c+d x))^4 \sin (c+d x)}{4 d}+\frac {\int \cos ^3(c+d x) (a+a \sec (c+d x))^4 (4 a A-a (A-4 C) \sec (c+d x)) \, dx}{4 a} \\ & = \frac {a A \cos ^2(c+d x) (a+a \sec (c+d x))^3 \sin (c+d x)}{3 d}+\frac {A \cos ^3(c+d x) (a+a \sec (c+d x))^4 \sin (c+d x)}{4 d}+\frac {\int \cos ^2(c+d x) (a+a \sec (c+d x))^3 \left (3 a^2 (7 A+4 C)-a^2 (7 A-12 C) \sec (c+d x)\right ) \, dx}{12 a} \\ & = \frac {a A \cos ^2(c+d x) (a+a \sec (c+d x))^3 \sin (c+d x)}{3 d}+\frac {A \cos ^3(c+d x) (a+a \sec (c+d x))^4 \sin (c+d x)}{4 d}+\frac {(7 A+4 C) \cos (c+d x) \left (a^2+a^2 \sec (c+d x)\right )^2 \sin (c+d x)}{8 d}+\frac {\int \cos (c+d x) (a+a \sec (c+d x))^2 \left (2 a^3 (35 A+36 C)-a^3 (35 A-12 C) \sec (c+d x)\right ) \, dx}{24 a} \\ & = \frac {a A \cos ^2(c+d x) (a+a \sec (c+d x))^3 \sin (c+d x)}{3 d}+\frac {A \cos ^3(c+d x) (a+a \sec (c+d x))^4 \sin (c+d x)}{4 d}+\frac {(7 A+4 C) \cos (c+d x) \left (a^2+a^2 \sec (c+d x)\right )^2 \sin (c+d x)}{8 d}-\frac {(35 A-12 C) \left (a^4+a^4 \sec (c+d x)\right ) \sin (c+d x)}{24 d}+\frac {\int \cos (c+d x) (a+a \sec (c+d x)) \left (15 a^4 (7 A+4 C)+96 a^4 C \sec (c+d x)\right ) \, dx}{24 a} \\ & = \frac {5 a^4 (7 A+4 C) \sin (c+d x)}{8 d}+\frac {a A \cos ^2(c+d x) (a+a \sec (c+d x))^3 \sin (c+d x)}{3 d}+\frac {A \cos ^3(c+d x) (a+a \sec (c+d x))^4 \sin (c+d x)}{4 d}+\frac {(7 A+4 C) \cos (c+d x) \left (a^2+a^2 \sec (c+d x)\right )^2 \sin (c+d x)}{8 d}-\frac {(35 A-12 C) \left (a^4+a^4 \sec (c+d x)\right ) \sin (c+d x)}{24 d}-\frac {\int \left (-3 a^5 (35 A+52 C)-96 a^5 C \sec (c+d x)\right ) \, dx}{24 a} \\ & = \frac {1}{8} a^4 (35 A+52 C) x+\frac {5 a^4 (7 A+4 C) \sin (c+d x)}{8 d}+\frac {a A \cos ^2(c+d x) (a+a \sec (c+d x))^3 \sin (c+d x)}{3 d}+\frac {A \cos ^3(c+d x) (a+a \sec (c+d x))^4 \sin (c+d x)}{4 d}+\frac {(7 A+4 C) \cos (c+d x) \left (a^2+a^2 \sec (c+d x)\right )^2 \sin (c+d x)}{8 d}-\frac {(35 A-12 C) \left (a^4+a^4 \sec (c+d x)\right ) \sin (c+d x)}{24 d}+\left (4 a^4 C\right ) \int \sec (c+d x) \, dx \\ & = \frac {1}{8} a^4 (35 A+52 C) x+\frac {4 a^4 C \text {arctanh}(\sin (c+d x))}{d}+\frac {5 a^4 (7 A+4 C) \sin (c+d x)}{8 d}+\frac {a A \cos ^2(c+d x) (a+a \sec (c+d x))^3 \sin (c+d x)}{3 d}+\frac {A \cos ^3(c+d x) (a+a \sec (c+d x))^4 \sin (c+d x)}{4 d}+\frac {(7 A+4 C) \cos (c+d x) \left (a^2+a^2 \sec (c+d x)\right )^2 \sin (c+d x)}{8 d}-\frac {(35 A-12 C) \left (a^4+a^4 \sec (c+d x)\right ) \sin (c+d x)}{24 d} \\ \end{align*}
Time = 7.61 (sec) , antiderivative size = 375, normalized size of antiderivative = 1.88 \[ \int \cos ^4(c+d x) (a+a \sec (c+d x))^4 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {a^4 \cos ^2(c+d x) (1+\cos (c+d x))^4 \sec ^8\left (\frac {1}{2} (c+d x)\right ) \left (A+C \sec ^2(c+d x)\right ) \left (12 (35 A+52 C) x-\frac {384 C \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}{d}+\frac {384 C \log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}{d}+\frac {96 (7 A+4 C) \cos (d x) \sin (c)}{d}+\frac {24 (7 A+C) \cos (2 d x) \sin (2 c)}{d}+\frac {32 A \cos (3 d x) \sin (3 c)}{d}+\frac {3 A \cos (4 d x) \sin (4 c)}{d}+\frac {96 (7 A+4 C) \cos (c) \sin (d x)}{d}+\frac {24 (7 A+C) \cos (2 c) \sin (2 d x)}{d}+\frac {32 A \cos (3 c) \sin (3 d x)}{d}+\frac {3 A \cos (4 c) \sin (4 d x)}{d}+\frac {96 C \sin \left (\frac {d x}{2}\right )}{d \left (\cos \left (\frac {c}{2}\right )-\sin \left (\frac {c}{2}\right )\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}+\frac {96 C \sin \left (\frac {d x}{2}\right )}{d \left (\cos \left (\frac {c}{2}\right )+\sin \left (\frac {c}{2}\right )\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}\right )}{768 (A+2 C+A \cos (2 (c+d x)))} \]
[In]
[Out]
Time = 0.46 (sec) , antiderivative size = 144, normalized size of antiderivative = 0.72
method | result | size |
parallelrisch | \(\frac {57 \left (-\frac {256 C \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \cos \left (d x +c \right )}{57}+\frac {256 C \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \cos \left (d x +c \right )}{57}+\left (\frac {704 A}{171}+\frac {128 C}{57}\right ) \sin \left (2 d x +2 c \right )+\left (A +\frac {8 C}{57}\right ) \sin \left (3 d x +3 c \right )+\frac {32 A \sin \left (4 d x +4 c \right )}{171}+\frac {A \sin \left (5 d x +5 c \right )}{57}+\frac {280 \left (A +\frac {52 C}{35}\right ) x d \cos \left (d x +c \right )}{57}+\frac {56 \left (A +\frac {9 C}{7}\right ) \sin \left (d x +c \right )}{57}\right ) a^{4}}{64 d \cos \left (d x +c \right )}\) | \(144\) |
derivativedivides | \(\frac {a^{4} A \left (\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+a^{4} C \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+\frac {4 a^{4} A \left (2+\cos \left (d x +c \right )^{2}\right ) \sin \left (d x +c \right )}{3}+4 a^{4} C \sin \left (d x +c \right )+6 a^{4} A \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+6 a^{4} C \left (d x +c \right )+4 a^{4} A \sin \left (d x +c \right )+4 a^{4} C \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+a^{4} A \left (d x +c \right )+a^{4} C \tan \left (d x +c \right )}{d}\) | \(197\) |
default | \(\frac {a^{4} A \left (\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+a^{4} C \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+\frac {4 a^{4} A \left (2+\cos \left (d x +c \right )^{2}\right ) \sin \left (d x +c \right )}{3}+4 a^{4} C \sin \left (d x +c \right )+6 a^{4} A \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+6 a^{4} C \left (d x +c \right )+4 a^{4} A \sin \left (d x +c \right )+4 a^{4} C \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+a^{4} A \left (d x +c \right )+a^{4} C \tan \left (d x +c \right )}{d}\) | \(197\) |
risch | \(\frac {35 a^{4} A x}{8}+\frac {13 a^{4} x C}{2}-\frac {7 i a^{4} A \,{\mathrm e}^{2 i \left (d x +c \right )}}{8 d}-\frac {i {\mathrm e}^{2 i \left (d x +c \right )} a^{4} C}{8 d}-\frac {7 i a^{4} A \,{\mathrm e}^{i \left (d x +c \right )}}{2 d}-\frac {2 i {\mathrm e}^{i \left (d x +c \right )} a^{4} C}{d}+\frac {7 i a^{4} A \,{\mathrm e}^{-i \left (d x +c \right )}}{2 d}+\frac {2 i {\mathrm e}^{-i \left (d x +c \right )} a^{4} C}{d}+\frac {7 i a^{4} A \,{\mathrm e}^{-2 i \left (d x +c \right )}}{8 d}+\frac {i {\mathrm e}^{-2 i \left (d x +c \right )} a^{4} C}{8 d}+\frac {2 i a^{4} C}{d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}+\frac {4 a^{4} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) C}{d}-\frac {4 a^{4} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) C}{d}+\frac {a^{4} A \sin \left (4 d x +4 c \right )}{32 d}+\frac {a^{4} A \sin \left (3 d x +3 c \right )}{3 d}\) | \(271\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 158, normalized size of antiderivative = 0.79 \[ \int \cos ^4(c+d x) (a+a \sec (c+d x))^4 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {3 \, {\left (35 \, A + 52 \, C\right )} a^{4} d x \cos \left (d x + c\right ) + 48 \, C a^{4} \cos \left (d x + c\right ) \log \left (\sin \left (d x + c\right ) + 1\right ) - 48 \, C a^{4} \cos \left (d x + c\right ) \log \left (-\sin \left (d x + c\right ) + 1\right ) + {\left (6 \, A a^{4} \cos \left (d x + c\right )^{4} + 32 \, A a^{4} \cos \left (d x + c\right )^{3} + 3 \, {\left (27 \, A + 4 \, C\right )} a^{4} \cos \left (d x + c\right )^{2} + 32 \, {\left (5 \, A + 3 \, C\right )} a^{4} \cos \left (d x + c\right ) + 24 \, C a^{4}\right )} \sin \left (d x + c\right )}{24 \, d \cos \left (d x + c\right )} \]
[In]
[Out]
Timed out. \[ \int \cos ^4(c+d x) (a+a \sec (c+d x))^4 \left (A+C \sec ^2(c+d x)\right ) \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.22 (sec) , antiderivative size = 194, normalized size of antiderivative = 0.97 \[ \int \cos ^4(c+d x) (a+a \sec (c+d x))^4 \left (A+C \sec ^2(c+d x)\right ) \, dx=-\frac {128 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} A a^{4} - 3 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} A a^{4} - 144 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} A a^{4} - 96 \, {\left (d x + c\right )} A a^{4} - 24 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} C a^{4} - 576 \, {\left (d x + c\right )} C a^{4} - 192 \, C a^{4} {\left (\log \left (\sin \left (d x + c\right ) + 1\right ) - \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 384 \, A a^{4} \sin \left (d x + c\right ) - 384 \, C a^{4} \sin \left (d x + c\right ) - 96 \, C a^{4} \tan \left (d x + c\right )}{96 \, d} \]
[In]
[Out]
none
Time = 0.36 (sec) , antiderivative size = 244, normalized size of antiderivative = 1.22 \[ \int \cos ^4(c+d x) (a+a \sec (c+d x))^4 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {96 \, C a^{4} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - 96 \, C a^{4} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - \frac {48 \, C a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1} + 3 \, {\left (35 \, A a^{4} + 52 \, C a^{4}\right )} {\left (d x + c\right )} + \frac {2 \, {\left (105 \, A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 84 \, C a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 385 \, A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 276 \, C a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 511 \, A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 300 \, C a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 279 \, A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 108 \, C a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{4}}}{24 \, d} \]
[In]
[Out]
Time = 15.76 (sec) , antiderivative size = 234, normalized size of antiderivative = 1.17 \[ \int \cos ^4(c+d x) (a+a \sec (c+d x))^4 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {20\,A\,a^4\,\sin \left (c+d\,x\right )}{3\,d}+\frac {4\,C\,a^4\,\sin \left (c+d\,x\right )}{d}+\frac {35\,A\,a^4\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{4\,d}+\frac {13\,C\,a^4\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}+\frac {8\,C\,a^4\,\mathrm {atanh}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}+\frac {4\,A\,a^4\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{3\,d}+\frac {A\,a^4\,{\cos \left (c+d\,x\right )}^3\,\sin \left (c+d\,x\right )}{4\,d}+\frac {C\,a^4\,\sin \left (c+d\,x\right )}{d\,\cos \left (c+d\,x\right )}+\frac {27\,A\,a^4\,\cos \left (c+d\,x\right )\,\sin \left (c+d\,x\right )}{8\,d}+\frac {C\,a^4\,\cos \left (c+d\,x\right )\,\sin \left (c+d\,x\right )}{2\,d} \]
[In]
[Out]